home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / graphics / animatic.arc / CBFHI.SCF < prev    next >
Text File  |  1985-05-29  |  2KB  |  37 lines

  1. #
  2. #   This is an example source code format used by The Sourcerer.
  3. #   This format creates C source code for an array of frames (each frame
  4. #   is an array of integers).
  5. #
  6. #   Macros for The Sourcerer start with a backslash \ character.
  7. #   The | character tells The Sourcerer where it can break the line.
  8. #   Comments start with the # character and go to the end of the line.
  9. #
  10. \title    # The title gets put in The Sourcerer's "Formats" menu.
  11. C by frames (hex ints)
  12. \info     # The info lines get put in an alert box to the user.
  13. C by frames
  14. (hexadecimal  integers)
  15. \header   # The header section gets written once at the beginning.
  16.     /* 
  17.      * Image data for Animatic film "\name".
  18.      * This film consists of \nframes frames.
  19.      * Each frame is \width pixels wide and \height pixels tall.
  20.      * The palette for this film is as follows (values are hex):
  21.      *
  22.      * \palette
  23.      */
  24.     static int \name[\nframes][] = {
  25. \fheader  # The frame header gets written at the beginning of each frame.
  26.         /* Frame \frame */ {
  27. \repeat   # The repeated section gets written over and over for each frame.
  28.             0x\hword,| 0x\hword,| 0x\hword,| 0x\hword,| 0x\hword,| 0x\hword,| 0x\hword,| 0x\hword,| 
  29. \fclosing # The frame closing gets written at the end of each frame.
  30.             0x\hword, 0x\hword, 0x\hword, 0x\hword, 0x\hword, 0x\hword, 0x\hword, 0x\hword 
  31.         },
  32. \closing  # The closing gets written at the end instead of the frame closing.
  33.             0x\hword, 0x\hword, 0x\hword, 0x\hword, 0x\hword, 0x\hword, 0x\hword, 0x\hword
  34.         }
  35.     };
  36.  
  37.